#ifndef FILEPROCESSOR_H
#define FILEPROCESSOR_H

#include <string>
#include <vector>
#include "PageLib.h"

using std::string;
using std::vector;

class PageLib;

class FileProcessor
{
public:
    FileProcessor(PageLib& pageLib)
    : _pageLib(pageLib)
    {}

    void create()
    {
        vector<string> fileNames = _pageLib.getFiles();

        for (const string& fileName : fileNames) {
            process(fileName);
        }
    }
    int process(const string& fileName);
private:
    PageLib& _pageLib;
    string _titleFeature;
};

#endif
